Skip to content

obviously drop vector#17

Open
akrieger wants to merge 7 commits intomainfrom
test_pr
Open

obviously drop vector#17
akrieger wants to merge 7 commits intomainfrom
test_pr

Conversation

@akrieger
Copy link
Copy Markdown
Owner

Summary

Category "Brief description"

Purpose of change

Describe the solution

Describe alternatives you've considered

Testing

Additional context

Comment thread src/iuse_software.h
Comment thread src/iuse_software.h
Comment on lines 4 to 14

#include <map>
#include <string>
#include <vector>
#include <string_view>
#include <set>
#include <utility>
#include <filesystem>

bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IWYU

Suggested change
#include <map>
#include <string>
#include <vector>
#include <string_view>
#include <set>
#include <utility>
#include <filesystem>
bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,
#include <map>
#include <string>
bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,

Comment thread data/json/statistics.json
Comment on lines 4 to 10
"type": "event_statistic",
"stat_type": "last_value",
"event_type": "game_avatar_new",
"field": "avatar_id"
"field": "avatar_id"
},
{
"id": "last_words",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON & C++ formatters

Suggested change
"type": "event_statistic",
"stat_type": "last_value",
"event_type": "game_avatar_new",
"field": "avatar_id"
"field": "avatar_id"
},
{
"id": "last_words",
"type": "event_statistic",
"stat_type": "last_value",
"event_type": "game_avatar_new",
"field": "avatar_id"
},
{
"id": "last_words",

Comment thread src/path_info.cpp
Comment on lines 115 to 121
// Data is always relative to itself. Also, the base path might not be writeable.
datadir_path_value = cata_path{ cata_path::root_path::data, std::filesystem::path{} };

if( !base_path_value.empty() ) {
if(!base_path_value.empty()) {
#if defined(DATA_DIR_PREFIX)
datadir_value = base_path_value + "share/cataclysm-dda/";
prefix = datadir_value;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON & C++ formatters

Suggested change
// Data is always relative to itself. Also, the base path might not be writeable.
datadir_path_value = cata_path{ cata_path::root_path::data, std::filesystem::path{} };
if( !base_path_value.empty() ) {
if(!base_path_value.empty()) {
#if defined(DATA_DIR_PREFIX)
datadir_value = base_path_value + "share/cataclysm-dda/";
prefix = datadir_value;
// Data is always relative to itself. Also, the base path might not be writeable.
datadir_path_value = cata_path{ cata_path::root_path::data, std::filesystem::path{} };
if( !base_path_value.empty() ) {
#if defined(DATA_DIR_PREFIX)
datadir_value = base_path_value + "share/cataclysm-dda/";
prefix = datadir_value;

Comment thread src/iuse_software.h
Comment on lines 4 to 14

#include <map>
#include <string>
#include <vector>
#include <string_view>
#include <set>
#include <utility>
#include <filesystem>

bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include What You Use

Suggested change
#include <map>
#include <string>
#include <vector>
#include <string_view>
#include <set>
#include <utility>
#include <filesystem>
bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,
#include <map>
#include <string>
bool play_videogame( const std::string &function_name,
std::map<std::string, std::string> &game_data,

Comment thread data/json/statistics.json
"stat_type": "last_value",
"event_type": "game_avatar_new",
"field": "avatar_id"
"field": "avatar_id"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JSON & C++ formatters] reported by reviewdog 🐶

Suggested change
"field": "avatar_id"
"field": "avatar_id"

Comment thread src/path_info.cpp
datadir_path_value = cata_path{ cata_path::root_path::data, std::filesystem::path{} };

if( !base_path_value.empty() ) {
if(!base_path_value.empty()) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JSON & C++ formatters] reported by reviewdog 🐶

Suggested change
if(!base_path_value.empty()) {
if( !base_path_value.empty() ) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant